// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class MenuItem : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<MenuItem, MasterDbContextLocator>
    {

        public long Id { get; set; }
        public string MenuCode { get; set; }
        public string ParentCode { get; set; }
        public string MenuName { get; set; }
        public string IconClass { get; set; }
        public string URL { get; set; }
        public bool? IsVisible { get; set; }
        public bool? IsBtn { get; set; }
        public int? MenuSeq { get; set; }
    
        public void Configure(EntityTypeBuilder<MenuItem> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.IconClass).HasMaxLength(100);

                entityBuilder.Property(e => e.MenuCode).HasMaxLength(100);

                entityBuilder.Property(e => e.MenuName).HasMaxLength(100);

                entityBuilder.Property(e => e.ParentCode).HasMaxLength(100);

                entityBuilder.Property(e => e.URL).HasMaxLength(100);
        }

    }
}

